#include <iostream>
using namespace std;
int main()
{
    int i,j=0,sum=0;
    int sale[3][6]={
                    {112,76,95,120,98,68},
                    {90,120,88,112,108,120},
                    {108,99,126,90,76,98}
                    };

    for(i=0;i<3;i++)
    {
        sum = 0;
        for(j=0;j<6;j++)
            sum+=sale[i][j];
        cout <<"销售员"<<i+1<<"业务前半年业绩总额为:"<<sum<<endl;
    }

    for(i=0;i<6;i++)
    {
        sum = 0;
        for(j=0;j<3;j++)
              sum+=sale[j][i];
        cout <<"所有销售员第"<<i+1<<"月业务业绩总额为:"<<sum<<endl; 
    }
}